<?php
session_start();
require_once './db_conn.php';
header("content-type:text/html;charset=utf-8");
$conn;
$connunt = $_POST['username'];
$password = $_POST['password'];
$sql = "
 select *
 from suer 
 where connunt='$connunt'
 and password='$password';
  ";
$result = $conn->query($sql);
if($result->num_rows>0){
 header("location:index.php");
}else {
    echo "用户名或密码错误";
}